set(ARCH arm)


include_directories(
  ${PROJECT_SOURCE_DIR}/include/arch/${ARCH}
  ${PROJECT_SOURCE_DIR}/kernel/include/arch/${ARCH}/)

set(TARGET_ASM_SRC
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/start.s
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/exception.s
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/arm-utils.s)

set(TARGET_C_SRC
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/io.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/serial.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/console.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/cache.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/mmu.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/timer.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/interrupt.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/process.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/video.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/sync-primitives.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/omap-clock.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/omap-gpio.c
    ${CMAKE_SOURCE_DIR}/kernel/src/arch/${ARCH}/bsp/beagle/beagle.c)

set(TARGET_C_FLAGS "")
set(TARGET_ASM_FLAGS "")
set(TARGET_LINK_FLAGS "-T '${CMAKE_SOURCE_DIR}/kernel/src/arch/arm/bsp/beagle/beagle.ld'")
set(TARGET_C_DEFS "CORTEX_A8")
